<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <!--可插入音频和视频文件-->
    <embed id="embed" src="hlw.mp3" width="400" height="300" type="">

    <div>
        height:高度 <br>
        width:宽度 <br>
        src: 嵌入内容的url <br>
        type:规定嵌入内容的 MIME 类型。 <br>
    </div>

</body>
<script>
    var embed = document.getElementById("embed");
    embed.addEventListener("onvolumechange",function () {
        alert("音量改变了！");
    })
    embed .addEventListener("onpause",function () {
        alert("暂停了！")
    })
</script>
</html>